#! /bin/bash
set -xe
SHA=$(./pyrunner cc/appcoin2/strategy/lm/utils.py get_fastfeature_commitid)
MSG=$(./pyrunner cc/appcoin2/strategy/lm/utils.py get_commit_msg)
echo "sha: $SHA, msg: $MSG"


bash cc/appcoin2/strategy/lm/update_fastfeature_repo_reverse.sh
bash cc/appcoin2/strategy/lm/update_repo_and_build_lm.sh
cd $HOME/workspace/fastfeature/coinstrat
pip install -r settings/requirements.txt
./pyrunner coinstrat/strat_lm/app/midfreq/utils/ci_test.py run \
  --sha="$SHA" --msg="$MSG"
